﻿Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
 Public Class slider
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function Getslides() As AjaxControlToolkit.Slide()

        Dim Mysldshow(9) As AjaxControlToolkit.Slide
        Mysldshow(0) = New AjaxControlToolkit.Slide("Images/image0.jpg", "run", "Cool moon night...")
        Mysldshow(1) = New AjaxControlToolkit.Slide("Images/film1.jpg", "swades", "Red moon desert...")
        Mysldshow(2) = New AjaxControlToolkit.Slide("Images/film2.jpg", "tmk", "Beautiful tulips...")
        Mysldshow(3) = New AjaxControlToolkit.Slide("Images/film3.jpg", "yamla", "Way to home...")
        Mysldshow(4) = New AjaxControlToolkit.Slide("Images/film4.jpg", "dhoom2", "Age of mythology...")
        Mysldshow(5) = New AjaxControlToolkit.Slide("Images/film5.jpg", "ru", "Cool moon nigh")
        Mysldshow(6) = New AjaxControlToolkit.Slide("Images/film6.jpg", "swad", "Red moon deser")
        Mysldshow(7) = New AjaxControlToolkit.Slide("Images/film7.jpg", "tm", "Beautiful tulip")
        Mysldshow(8) = New AjaxControlToolkit.Slide("Images/film8.jpg", "yaml", "Way to ho.")
        Mysldshow(9) = New AjaxControlToolkit.Slide("Images/film9.jpg", "dhoom", "Age of mytholo")

        Return Mysldshow
    End Function

End Class